package org.flexthinker.module.impl
{
    import org.flexthinker.module.Descriptor;

    [DefaultProperty("children")]

    /**
     *  Loads multiple modules / descriptors at once.
     * It can be used to load a set of modules and a runtime stylesheet for those modules.
     * If you have a shell app then you can use this class to load everything you need in the UI.
     */
    public class CompositeModuleDescriptor extends DescriptorImpl
    {
        public var children:Vector.<Descriptor>;

        public function CompositeModuleDescriptor()
        {
            super(null);
            resetChildren();
        }

        public function addChild(descr:Descriptor):void
        {
            children.push(descr);
        }

        private function resetChildren():void
        {
            children = new Vector.<Descriptor>();
        }


    }
}